﻿@{
    Layout = null;
}
<!DOCTYPE html>

<html>
<head>
    <title>上传图片</title>
    <link href="@Url.Content("~/Areas/User/Css/all2.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/User/Css/Galleryall.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/User/Css/box.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/User/Css/info.css")" rel="stylesheet" type="text/css" />
    @* <link href="@Url.Content("~/Areas/User/Css/pager.css")" rel="stylesheet" type="text/css" />*@
    <script src="@Url.Content("~/JS/jquery.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/JS/artDialog/artDialog.source.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/JS/artDialog/dialogHelper.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/JS/artDialog/skins/syhDialog.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/JS/artDialog/plugins/iframeTools.source.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/JS/Gallery.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/JS/swfUploadImg/swfupload.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/JS/swfUploadImg/plugins/swfupload.speed.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/JS/SYHUpload.js")" type="text/javascript"></script>
</head>
<body>
<div class="box w" >
	<div class="box-inner">
        <div class="box-head">
            <p class="box-head-title">上传图片</p>
            <p class="box-head-close" onclick="javascript:$.dialogHelper.closeAll();">×</p>
        </div>

        <div class="mainbox">
            <ul class="tittab tab1">
               <li class="tcurrent" >我的相册</li>
               <li onclick="changetab(2);"><a hidefocus="" href="###">我的电脑</a></li>           
            </ul>

            <ul class="tittab tab2" style="display:none;">
               <li onclick="changetab(1);"><a hidefocus="" href="###">我的相册</a></li>
               <li class="tcurrent">我的电脑</li>
            </ul>

            <div id="mychoose" class="choose tab1" >
                <p class="album mt10">
                    <span>
                        <select id="ddlalums" name="select" >
                            @helper renderAlum()
                                {
                                    System.Data.DataView dv = new System.Data.DataView(@ViewBag.Alum);

                                    foreach (System.Data.DataRowView drv in dv)
                                    {
                                        string id = drv["Id"].ToString();
                                <option  value="@id" >
                                    @MvcHtmlString.Create(@drv["Name"].ToString())
                                </option>
                                    }
                            }
                            @renderAlum()
                        </select>
                    </span>
                    <span class="ml10">请从您的相册中点击选择图片</span>
                </p>
                <div id="div_picList">
 
                </div>
          
            </div>
            <div id="myupload" class="tab2" style=" display:none;">
            <div class="upload">
                <p class="gray">提示：您每次可以上传 <span class="red1">4</span> 张图片，选择的图片单张大小不超过 <span class="red1">5MB</span>，支持jpg,gif,png。</p>
                <ul>
                    <li>
                        <span class="fd-left layer">选择相册：</span>
                        <span class="fd-left mt03">
                            <select name="select" id="ddlablum2" >
                            @helper renderAblum()
                                {
                                    System.Data.DataView dv = new System.Data.DataView(@ViewBag.Alum);

                                    foreach (System.Data.DataRowView drv in dv)
                                    {
                                        string id = drv["Id"].ToString();
                                <option  value="@id" >
                                    @MvcHtmlString.Create(@drv["Name"].ToString())
                                </option>
                                    }
                            }
                            @renderAblum()
                            </select>
                        </span>
                        <span class="fd-left blue pl10"><a href="###" onclick="showAblumb();">创建新相册</a></span>
                    </li>
                    <li id="ablumIdCreate" style=" display:none;">
                        <span class="fd-left layer"> </span>
                        <p class="addpic fd-left">
                            <span class="fd-left">相册名：</span>
                            <input type="text" id="txtablumName" name="txtablumName" class="fd-left txt mt03"/>
                            <span class="gray-btn fd-left ml5"><a href="###" class="wh01 h17 mt03" onclick="createAblum();">确定</a></span>
                            <span class="gray-btn fd-left ml5"><a href="###" class="wh01 h17 mt03" onclick="showAblumb();">取消</a></span>
                        </p>
                    </li>
                    <li>
                        <span class="fd-left layer">上传图片：</span>
                        <span class="orange-btn fd-left mt03"><a hidefocus="" href="###"><span  id="uploadBtn"></span></a></span>
                        <span class="fd-left pl10">一次可选多张图片上传，但不能超过 <b class="red1">4</b> 张</span>
                    </li>
                    <li>
                        <span class="fd-left layer"></span>
                        <span class="fd-left">无法选择图片，<span class="blue"><a href="#">点击这里……</a></span></span>
                    </li>
                </ul>
            </div>
            
            <div id="divprogresscontainer" class="schedule">
               
 
            </div>
            </div>   
            
            <div class="insert">
                <b class="f14 pl10">要插入的图片</b>
                <ul class="mt10" id="picQueue">
                 </ul>
            </div>
            <div class="fd-clear"></div>
            <span class="pic-btn" ><input type="button" value="确 定" onclick="galleryDelegte.submitImage();" class="save-btn"/></span>
            
        </div>
         
	</div>
</div>
</body>
</html>